$(function(){
    // 通过跳转
    $(".jump").on('click',function(event){
        const reportId = $(event.target).attr("report-id");
        const reportType = $(event.target).attr("report-type");
        $.get('http://' + HTTP_HOST + '/admin/adoptOfAccounts/' + reportId + '/' + reportType, function (data) {
            if (data.error == 0) {
                alert(data.msg);
            }
            location.reload();
        })
    })
//拒绝弹窗
    $('.jujue').on('click',function(event){
        const reportId = $(event.target).attr("report-id");
        const reportType = $(event.target).attr("report-type");
        layer.open(({
            type:2,
            area:['600px','550px'],
            btn:['取消'],
            anim:'3',
            content: 'http://' + HTTP_HOST + '/admin/denialOfAccounts/' + reportId + '/' + reportType
        }))
    });
})